package com.sk.imitationnetease.services

import android.app.Service
import android.content.Intent
import android.os.IBinder
import com.sk.imitationnetease.IMediaClient
import com.sk.imitationnetease.IMediaService

class MediaPlayerService:Service() {
    val serviceStub:IMediaService.Stub = object : IMediaService.Stub(){
        override fun setMediaClient(iMediaClient: IMediaClient?) {
            iMediaClient?.onSuccess()
        }
    }

    override fun onBind(intent: Intent?): IBinder? {
        return serviceStub
    }

    override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
        return super.onStartCommand(intent, flags, startId)
    }

}